package com.iap.app.event
{
	import com.iap.app.model.ServiceResponse;
	
	import flash.events.Event;
	
	public class DataEvent extends Event
	{
		public static const EVENT_COMPLETE:String = "DATA_EVENT_COMPLETE"; 
		public static const EVENT_ACCESS_DENIED:String = "DATA_ACCESS_DENIED";
		public static const EVENT_ERROR:String = "DATA_EVENT_ERROR";

		public var response:ServiceResponse = null;

		public function DataEvent(type:String, response:ServiceResponse)
		{
			super(type, bubbles, cancelable);
			this.response = response;
		}
		
		override public function clone():Event
		{
			return new DataEvent(type, response);
		}
	}
}